package com.lam.mall.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lam.mall.entity.OrderSettlement;
import com.lam.mall.mapper.OrderSettlementMapper;
import com.lam.mall.service.OrderSettlementService;

@Service
public class OrderSettlementServiceImpl implements OrderSettlementService {
	
	@Autowired
    private OrderSettlementMapper orderSettlementMapper;
	
	@Override
	public OrderSettlement selectByOrderNumber(String orderNumber) {
		
		QueryWrapper<OrderSettlement> queryWrapper = new QueryWrapper<>();
		queryWrapper.eq("order_number", orderNumber);
		return orderSettlementMapper.selectOne(queryWrapper);
	}

}
